package com.wise.site.protocol.action;

import org.json.JSONObject;

import com.wise.site.protocol.base.SoapAction;

public class CommentUploadAction extends SoapAction<Integer> {

	public CommentUploadAction(ACTION_TYPE type, String method) {
		super(type, method);
	}

	@Override
	protected Integer parseJson(String response) throws Exception {
		JSONObject json = new JSONObject(response);
		if(!json.isNull("flag")){
			return json.getInt("flag");
		}
		return 0;
	}

}
